package edu.mobbuzz.web.encoder;

import org.apache.tapestry5.ValueEncoder;

public class StringValueEncoder implements ValueEncoder<Integer> {

	public String toClient(Integer value) {
		System.out.println(value);
		return value.toString();
	}

	public Integer toValue(String value) {
		System.out.println(value);
		return Integer.parseInt(value);
	}

}
